add_executable(record_node
    record_component.cc
)

target_link_libraries(record_node
    common_log
    common_time_utils
    record_manager
    ${SHARE_LIB_OPENSSL}
    ${SHARE_LIB_CRYPTO}
)

set_target_properties(record_node PROPERTIES LINK_FLAGS "-Wl,-rpath,../lib")

install(TARGETS record_node
    CONFIGURATIONS Release Debug Coverage Profile
    RUNTIME DESTINATION bin
)

add_executable(record_test_node
record_component_test.cc
)

target_link_libraries(record_test_node
    common_log
    common_time_utils
    record_manager
    ${SHARE_LIB_OPENSSL}
    ${SHARE_LIB_CRYPTO}
)

install(TARGETS record_test_node
    CONFIGURATIONS Release Debug Coverage Profile
    RUNTIME DESTINATION bin
)

set_target_properties(record_test_node PROPERTIES LINK_FLAGS "-Wl,-rpath,../lib")

add_subdirectory(recordbusiness)